<template>
	<view>
		<view class="vio-item">
			<view class="top">
				<text>违章</text>
				<view class="status center">{{item.disposeState}}</view>
			</view>
			<view class="bottom">
				<text>违章计分：{{item.deductMarks}}分</text>
				<text>罚款金额：{{item.money}}元</text>
				<text>违章地点：{{item.illegalSites}}</text>
				<text>违法行为：{{item.trafficOffence}}</text>
				<text>通知书号：{{item.noticeNo}}</text>
			</view>
			<view class="date">{{item.badTime}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item: {
						disposeState: '已缴款',
						deductMarks: '6',
						money: '200',
						illegalSites: '派出所',
						trafficOffence: '闯红灯',
						noticeNo: '2021042110040387379',
						badTime: '2023-9-30 11:52:11'
					}
			};
		}
	}
</script>

<style lang="scss">
page{
	background-color: #f7f7f7;
	view{
		padding: 20rpx;
		.vio-item{
			background-color: #fff;
			padding: 20rpx;
			display: flex;
			flex-direction: column;
			margin-top: 40rpx;
			border-radius: 20rpx;
			&:first-child{
				margin-top: 0;
			}
			.top{
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				text{
					font-size: 36rpx;
					font-weight: bold;
				}
				.status{
					background-color: #909399;
					width: 120rpx;
					height: 60rpx;
					font-size: 26rpx;
					border-radius: 10rpx;
					color: white;
				}
			}
			.bottom{
				display: flex;
				flex-direction: column;
				text{
					font-size: 26rpx;
					margin-top: 10rpx;
				}
			}
			.date{
				display: flex;
				flex-direction: row;
				justify-content: right;
				color: #666;
				font-size: 26rpx;
			}
		}
	}
}
</style>
